package com.mcptt.http.auth.process.result;


public class AuthResult
{
    public static final int FirstGetResult_Suc = 200;
    public static final int FirstGetResult_Redirect = 302;
    public static final int FirstGetResult_ProtocolEx = -1;
    public static final int FirstGetResult_IOEx = -2;
    public static final int FirstGetResult_Ex = -3;
    public static final int FirstGetResult_EncryptionEx = -4;

    protected int result = FirstGetResult_Ex;
    protected String desc = "";



    public AuthResult(int result, String desc)
    {
	this.result = result;
	this.desc = desc;
    }

    public String getDesc()
    {
	return desc;
    }
    public int getResult()
    {
	return result;
    }
    public String toString()
    {
	StringBuffer strBuf = new StringBuffer("GetResult  ");
	strBuf.append("result=").append(result).append(",");
	strBuf.append("desc=").append(desc).append(";");

	return strBuf.toString();
    }
}
